Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
roc::rtp::Format Struct Reference

RTP payload format. More...

#include <format.h>

Public Attributes

PayloadType payload_type
 Payload type. More...
 
unsigned flags
 Packet flags. More...
 
size_t sample_rate
 Sample rate. More...
 
packet::channel_mask_t channel_mask
 Channel mask. More...
 
size_t(* get_num_samples )(size_t payload_size)
 Get number of samples for given payload size. More...
 
audio::IFrameEncoder *(* new_encoder )(core::IAllocator &allocator)
 Create encoder. More...
 
audio::IFrameDecoder *(* new_decoder )(core::IAllocator &allocator)
 Create decoder. More...
 

Detailed Description

RTP payload format.

Definition at line 27 of file format.h.

Member Data Documentation

◆ channel_mask

packet::channel_mask_t roc::rtp::Format::channel_mask

Channel mask.

Definition at line 38 of file format.h.

◆ flags

unsigned roc::rtp::Format::flags

Packet flags.

Definition at line 32 of file format.h.

◆ get_num_samples

size_t(* roc::rtp::Format::get_num_samples) (size_t payload_size)

Get number of samples for given payload size.

Definition at line 41 of file format.h.

◆ new_decoder

audio::IFrameDecoder *(* roc::rtp::Format::new_decoder) (core::IAllocator &allocator)

Create decoder.

Definition at line 47 of file format.h.

◆ new_encoder

audio::IFrameEncoder *(* roc::rtp::Format::new_encoder) (core::IAllocator &allocator)

Create encoder.

Definition at line 44 of file format.h.

◆ payload_type

PayloadType roc::rtp::Format::payload_type

Payload type.

Definition at line 29 of file format.h.

◆ sample_rate

size_t roc::rtp::Format::sample_rate

Sample rate.

Definition at line 35 of file format.h.


The documentation for this struct was generated from the following file: